<!DOCTYPE html>
<html lang="UTF-8">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
    <title>{% block pageTitle %}{{ this.di.get('moduleConfig').application.id }}{% endblock %}</title>
    <meta name="author" content="ice.deng">
    <link rel="shortcut icon" href="/favicon.ico">
    <link rel="stylesheet" type="text/css" href="/libs/bootstrap-3.3.4/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/libs/font-awesome-4.4.0/css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="/assets/manage/css/main.css" />
    <link rel="stylesheet" type="text/css" href="/libs/validator-0.7.3/jquery.validator.css" />
    {% block pageHeader %}{% endblock %}
</head>
<body>
<div class="container-fluid">
    <div class="row" id="header">
        <div class="col-xs-12 ">
            <h1 class="pull-left">{{ this.di.get('moduleConfig').application.id }}<small> Manage OS</small></h1>
            <ul class="nav nav-pills pull-right" role="tablist">
                <li role="presentation"><a><i class="fa fa-user"></i> Hello, {{ operator.name }}</a></li>
                <li role="presentation"><a href="{{ url.get('sys/updatePwd') }}"><i class="fa fa-key"></i> Change Password</a></li>
                <li role="presentation"><a href="{{ url.get('sys/logout') }}"><i class="fa fa-sign-out"></i> Logout</a></li>
            </ul>
            <div class="clearfix"></div>
        </div>
    </div>
    <div class="row" id="nav_main">
        <div class="col-xs-12">
            <ul class="nav nav-tabs" role="tablist">
                {% if GroupRightVerifyController(operator.group, 'user', this.getDi()) %}
                {{ partial("module/main_nav", ['title': '用户', 'url': url.get('user'), 'active': main_nav_type == 'user']) }}
                {% endif %}
                {% if GroupRightVerifyController(operator.group, 'activity', this.getDi()) %}
                {{ partial("module/main_nav", ['title': '活动', 'url': url.get('activity/list',['activity_state':1]), 'active': main_nav_type == 'activity']) }}
                {% endif %}
                {% if GroupRightVerifyController(operator.group, 'question', this.getDi()) %}
                {{ partial("module/main_nav", ['title': '问答', 'url': url.get('question'), 'active': main_nav_type == 'question']) }}
                {% endif %}
                {% if GroupRightVerifyController(operator.group, 'bp', this.getDi()) %}
                {{ partial("module/main_nav", ['title': '美容院', 'url': url.get('bp'), 'active': main_nav_type == 'bp']) }}
                {% endif %}
                {% if GroupRightVerifyController(operator.group, 'om', this.getDi()) %}
                {{ partial("module/main_nav", ['title': '运营', 'url': url.get('om'), 'active': main_nav_type == 'om']) }}
                {% endif %}                                
                
                {{ partial("module/main_nav", ['title': '美粒宝典', 'url': url.get('beautycanon/list',['state':1]), 'active': main_nav_type == 'beautycanon']) }}
              
                {% if GroupRightVerifyController(operator.group, 'qaadd', this.getDi()) %}
                {{ partial("module/main_nav", ['title': '回答问题', 'url': url.get('qaadd'), 'active': main_nav_type == 'qaadd']) }}
                {% endif %}
                {% if operator.group == 10000 %}
                {{ partial("module/main_nav", ['title': '系统管理', 'url': url.get('sys'), 'active': main_nav_type == 'sys']) }}
                {% endif %}
            </ul>
        </div>
    </div>
</div>
<!-- Content Start -->
<div class="container-fluid" id="content_box">
    <div class="row">
        {% block content %}{% endblock %}
    </div>
</div>
<!-- Content End -->
<!-- Footer Start -->
<div class="container-fluid hide" id="footer">
    <p>Copyright &copy; 2015&nbsp;&nbsp;Powered By <a href="https://phalconphp.com/" target="_blank">Phalcon <?= Phalcon\Version::get() ?></a></p>
</div>
<div class="hide"><iframe name="ifr_send_file" id="ifr_send_file" width="0" height="0"></iframe></div>
<script type="text/javascript" src="/libs/jquery/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="/libs/bootstrap-3.3.4/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/libs/validator-0.7.3/jquery.validator.js"></script>
<script type="text/javascript" src="/libs/validator-0.7.3/local/zh_CN.js"></script>
<script type="text/javascript" src="/libs/layer-v2.2/layer.js"></script>
<script type="text/javascript" src="/assets/manage/js/footer.js"></script>
{% block pageFooter %}{% endblock %}
</body>
</html>